package com.offcn;

import com.alibaba.dubbo.config.annotation.Reference;
import com.offcn.service.TUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class TU {

    @Reference
    private TUserService tUserService;

    @GetMapping("a")
    public String first(){
        return tUserService.getName();
    }
}
